package com.wzy.single;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: wzy
 * @Date: 2021/09/13/18:27
 * @Description: 静态内部类
 */
public class StaticInnerClass {
    private StaticInnerClass() {

    }

    public static StaticInnerClass getInstance() {
        return Inner.singleton;
    }

    public static class Inner {
        private static final StaticInnerClass singleton = new StaticInnerClass();

    }

}
